package com.cskaoyan.bean.VoCCY;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;

public class MarketCategoryCreateVo {

    /**
     * id : 1036058
     * name : qwqwqw
     * keywords : qwqwqw
     * desc : 好好好好好
     * pid : 0
     * iconUrl : http://182.92.235.201:8083/wx/storage/fetch/omci3cp1gdb6csf8scgt.jpg
     * picUrl : http://182.92.235.201:8083/wx/storage/fetch/in2n46fa8u2of3tsr0yl.jpg
     * level : L1
     * addTime : 2022-09-08 20:03:14
     * updateTime : 2022-09-08 20:03:14
     */

    private int id;
    private String name;
    private String keywords;
    private String desc;
    private int pid;
    private String iconUrl;
    private String picUrl;
    private String level;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Data addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Data updateTime;

    public MarketCategoryCreateVo(Integer id, String name, String keywords, String desc, Integer pid, String iconUrl, String picUrl, String level, Date addTime, Date updateTime) {
    }

    public MarketCategoryCreateVo(int id, String name, String keywords, String desc, int pid, String iconUrl, String picUrl, String level, Data addTime, Data updateTime) {
        this.id = id;
        this.name = name;
        this.keywords = keywords;
        this.desc = desc;
        this.pid = pid;
        this.iconUrl = iconUrl;
        this.picUrl = picUrl;
        this.level = level;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Data getAddTime() {
        return addTime;
    }

    public void setAddTime(Data addTime) {
        this.addTime = addTime;
    }

    public Data getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Data updateTime) {
        this.updateTime = updateTime;
    }
}
